<?php foreach ($posts as $i=>$post): ?>
  <tr class="<?php echo fmod($i, 2) ? 'even' : 'odd' ?>">
    <td>
      <a href="<?php echo url_for('@showpost?module=post&action=show&id='.$post->getId()) ?>">
        <?php echo $post->getName() ?>
      </a>
    </td>
    <td>
      <?php echo $post->user->getLogin() ?>
    </td>
    <td>
      <?php echo $post->user_last->get(0)->getLogin() ?>
    </td>
    <td>
      <?php echo $post->getCommentsYesterday() ?>
    </td>
    <td>
      <?php echo $post->getCommentsToday() ?>
    </td>
    <td>
      <?php echo $post->getComments() ?>
    </td>
  </tr>    
<?php endforeach; ?>
<tr class="odd"><td colspan="6"></td></tr>